package thread.basic;

public class Demo01_Thread {
    /*
    证明jvm是多线程的
     */
    public static void main(String[] args) throws Throwable {
        for (int i = 0; i < 100000; i++) {
            new Demo01().finalize();
        }
        for (int i = 0; i < 100000; i++) {
            System.out.println("主线程执行！！！");
        }
    }
}

class Demo01 {
    @Override
    protected void finalize() throws Throwable {
        System.out.println("垃圾被清理了");
    }
}
